package com.hl.qzzpbackend.model.dto.user;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 用户邮箱验证码登录请求类
 * @author helong
 */
@Data
@ApiModel(value = "用户邮箱验证码登录请求类")
public class UserEmailLoginRequest implements Serializable {

    /**
     * 邮箱
     */
    @NotBlank(message = "邮箱不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$")
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 密码
     */
    private String code;
}
